<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <title>详细信息</title>
    <link rel="stylesheet" href="../static/css/weui.css"/>
    <link rel="stylesheet" href="../static/css/example.css"/>
    <link rel="stylesheet" href="../static/css/jquery-weui.css"/>
    <script src="../static/js/zepto.min.js"></script>
    <script src="../static/js/example.js"></script>
    <script src="../static/js/weui.min.js"></script>
    <script type="text/javascript" src="../static/js/jquery-weui.js"></script>
</head>
<body ontouchstart >
<div class="page" style="overflow-y:visible!important;">
    <div class="weui-cells weui-cells_form" style="margin: 0px">
      <div class="weui-cell" >
        <div class="weui-cell__hd"><label class="weui-label">姓名</label></div>
        <div class="weui-cell__bd">
            {% if result.Sex == '0' %}
                <p>{{ result.Name }}（女）</p>
            {% else %}
            <p>{{ result.Name }}（男）</p>
            {% endif %}
        </div>
      </div>

{#      <div class="weui-cell">#}
{#        <div class="weui-cell__hd"><label class="weui-label">身份证号</label></div>#}
{#        <div class="weui-cell__bd">#}
{#            {% if result.IdCard == None %}#}
{#              无#}
{#            {% else %}#}
{#          <p>{{ result.IdCard }}</p>#}
{#            {% endif %}#}
{#        </div>#}
{#      </div>#}

     <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label">民族|面貌</label></div>
        <div class="weui-cell__bd">
        {% if minzu.nationality == None%}
          无
        {% else %}
            {% if result.Polity == 'ZZMM003' %}
                <p>{{ minzu.nationality }} 共青团员</p>
            {% elif result.Polity == 'ZZMM002' %}
                <p>{{ minzu.nationality }} 预备党员</p>
            {% elif result.Polity == 'ZZMM004' %}
                <p>{{ minzu.nationality }} 中共党员</p>
            {% elif result.Polity == 'ZZMM005' %}
                <p>{{ minzu.nationality }} 群众</p>
            {% elif result.Polity == 'ZZMM006' %}
                <p>{{ minzu.nationality }} 民主党派</p>
            {% else %}
                 <p>{{ minzu.nationality }} 其他</p>
            {% endif %}
        {% endif %}
        </div>
      </div>

        <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label">学号</label></div>
        <div class="weui-cell__bd">
             <p id="uid">{{ result.studentId }}</p>
        </div>
      </div>


        <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label">学院</label></div>
        <div class="weui-cell__bd">
            {% if result.CollegeName == None %}
              无
            {% else %}
             <p>{{ result.CollegeName }}</p>
            {% endif %}
        </div>
      </div>

         <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label">专业班级</label></div>
        <div class="weui-cell__bd">
            {% if result.ClassName == None %}
              无
            {% else %}
              <p>{{ result.ClassName }}</p>
            {% endif %}
        </div>
      </div>

         <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label">毕业院校</label></div>
        <div class="weui-cell__bd">
            {% if postschool.UnitSchool == None%}
               无
            {% else %}
              <p>{{ postschool.UnitSchool }}</p>
            {% endif %}
        </div>
      </div>

         <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label">电话</label></div>
        <div class="weui-cell__bd">
            {% if result.MoveTel == None %}
                无
            {% else %}
                <p>{{ result.MoveTel }}</p>
            {% endif %}
        </div>
      </div>

         <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label">邮箱</label></div>
        <div class="weui-cell__bd">
            {% if result.Email == None %}
                无
            {% else %}
                <p>{{ result.Email }}</p>
            {% endif %}
        </div>
      </div>

     <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label">生源地</label></div>
        <div class="weui-cell__bd">
            {% if result.ComeWhere == None %}
                无
            {% else %}
                <p>{{ result.ComeWhere }}</p>
            {% endif %}
        </div>
      </div>

{#    <div class="weui-cell">#}
{#        <div class="weui-cell__hd"><label class="weui-label">银行卡号</label></div>#}
{#        <div class="weui-cell__bd">#}
{#            {% if result.BankNo == None %}#}
{#             无#}
{#            {% else %}#}
{#                {% if result.BankName == 'YHLB002' %}#}
{#                    <p>中国银行 {{ result.BankNo }}</p>#}
{#                {% elif result.BankName == 'YHLB003' %}#}
{#                    <p>中国工商银行 {{ result.BankNo }}</p>#}
{#                {% elif result.BankName == 'YHLB004' %}#}
{#                    <p>中国建设银行 {{ result.BankNo }}</p>#}
{#                {% else %}#}
{#                   <p> {{ result.BankName }}{{ result.BankNo }}</p>#}
{#                {% endif %}#}
{#            {% endif %}#}
{#        </div>#}
{#     </div>#}

     <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label">宿舍信息</label></div>
        <div class="weui-cell__bd">
        {% if postschool.DormAddress == None %}
            无
        {% else %}
           {% if postschool.SchoolYard == '01'or postschool.SchoolYard == '0101' or postschool.SchoolYard == '开发区'or postschool.SchoolYard == '0103' %}
               <p>开发区 {{ postschool.DormAddress }}</p>
               {% elif  postschool.SchoolYard == '0102'or postschool.SchoolYard == '金石滩校区' %}
                <p>金石滩校区  {{ postschool.DormAddress }}</p>
               {% else %}
               <p>无 {{ postschool.DormAddress }}</p>
           {% endif %}
        {% endif %}
        </div>
     </div>

     <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label">父亲|母亲</label></div>
        <div class="weui-cell__bd">
            {% if result.FatherName == None or result.MatherName == None %}
                无
            {% else %}
                <p>{{ result.FatherName }} {{ result.MatherName }} </p>
            {% endif %}
        </div>
      </div>

     <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label">父亲电话</label></div>
        <div class="weui-cell__bd">
            {% if result.FatherTel == None%}
                无
            {% else %}
                <p>{{ result.FatherTel }}</p>
            {% endif %}
        </div>
     </div>

    <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label">父亲单位</label></div>
        <div class="weui-cell__bd">
            {% if result.FatherUnit == None%}
                无
            {% else %}
                <p>{{ result.FatherUnit }}</p>
            {% endif %}
        </div>
     </div>

    <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label">母亲电话</label></div>
        <div class="weui-cell__bd">
            {% if result.MatherTel == None%}
                无
            {% else %}
                <p>{{ result.MatherTel }}</p>
            {% endif %}
        </div>
     </div>

    <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label">母亲单位</label></div>
        <div class="weui-cell__bd">
            {% if result.MatherUnit == None%}
                无
            {% else %}
                <p>{{ result.MatherUnit }}</p>
            {% endif %}
        </div>
     </div>

     <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label">家庭住址</label></div>
        <div class="weui-cell__bd">
            {% if result.FamillyAddress == None%}
                无
            {% else %}
                <p>{{ result.FamillyAddress }}</p>
            {% endif %}
        </div>
     </div>


 <div class="weui-btn-area" style="background-color: #FFFFFF;position: relative;margin-top: 0px;margin-right: 2px;margin-left: 2px;">
      <a class="weui-btn  confirm" href="javascript:history.go(-1);"style="width: 100%;background-color: #DEB887" id="showTooltips">返回</a>
 </div>

    </div>
</div>
</body>
</html>


<script type="text/javascript">
      function watermark(settings) {

        //默认设置
        var defaultSettings={
          watermark_txt:"text",
          watermark_x:20,//水印起始位置x轴坐标
          watermark_y:20,//水印起始位置Y轴坐标
          watermark_rows:8,//水印行数
          watermark_cols:2,//水印列数
          watermark_x_space:30,//水印x轴间隔
          watermark_y_space:30,//水印y轴间隔
          watermark_color:'#000000',//水印字体颜色
          watermark_alpha:0.2,//水印透明度
          watermark_fontsize:'16px',//水印字体大小
          watermark_font:'微软雅黑',//水印字体
          watermark_width:120,//水印宽度
          watermark_height:80,//水印长度
          watermark_angle:20//水印倾斜度数
        };
        //采用配置项替换默认值，作用类似jquery.extend
        if(arguments.length===1&&typeof arguments[0] ==="object" )
        {
          var src=arguments[0]||{};
          for(key in src)
          {
            if(src[key]&&defaultSettings[key]&&src[key]===defaultSettings[key])
              continue;
            else if(src[key])
              defaultSettings[key]=src[key];
          }
        }

        var oTemp = document.createDocumentFragment();

        //获取页面最大宽度
        var page_width = Math.max(document.body.scrollWidth,document.body.clientWidth);
        //获取页面最大长度
        var page_height = Math.max(document.body.scrollHeight,document.body.clientHeight);

        //如果将水印列数设置为0，或水印列数设置过大，超过页面最大宽度，则重新计算水印列数和水印x轴间隔
        if (defaultSettings.watermark_cols == 0 ||
          (parseInt(defaultSettings.watermark_x
            + defaultSettings.watermark_width *defaultSettings.watermark_cols
            + defaultSettings.watermark_x_space * (defaultSettings.watermark_cols - 1))
          > page_width)) {
          defaultSettings.watermark_cols =
            parseInt((page_width
              -defaultSettings.watermark_x
              +defaultSettings.watermark_x_space)
              / (defaultSettings.watermark_width
              + defaultSettings.watermark_x_space));
          defaultSettings.watermark_x_space =
            parseInt((page_width
              - defaultSettings.watermark_x
              - defaultSettings.watermark_width
              * defaultSettings.watermark_cols)
              / (defaultSettings.watermark_cols - 1));
        }
        //如果将水印行数设置为0，或水印行数设置过大，超过页面最大长度，则重新计算水印行数和水印y轴间隔
        if (defaultSettings.watermark_rows == 0 ||
          (parseInt(defaultSettings.watermark_y
            + defaultSettings.watermark_height * defaultSettings.watermark_rows
            + defaultSettings.watermark_y_space * (defaultSettings.watermark_rows - 1))
          > page_height)) {
          defaultSettings.watermark_rows =
            parseInt((defaultSettings.watermark_y_space
              + page_height - defaultSettings.watermark_y)
              / (defaultSettings.watermark_height + defaultSettings.watermark_y_space));
          defaultSettings.watermark_y_space =
            parseInt((page_height
              - defaultSettings.watermark_y
              - defaultSettings.watermark_height
              * defaultSettings.watermark_rows)
              / (defaultSettings.watermark_rows - 1));
        }
        var x;
        var y;
        for (var i = 0; i < defaultSettings.watermark_rows; i++) {
          y = defaultSettings.watermark_y + (defaultSettings.watermark_y_space + defaultSettings.watermark_height) * i;
          for (var j = 0; j < defaultSettings.watermark_cols; j++) {
            x = defaultSettings.watermark_x + (defaultSettings.watermark_width + defaultSettings.watermark_x_space) * j;

            var mask_div = document.createElement('div');
            mask_div.id = 'mask_div' + i + j;
            mask_div.appendChild(document.createTextNode(defaultSettings.watermark_txt));
            //设置水印div倾斜显示
            mask_div.style.webkitTransform = "rotate(-" + defaultSettings.watermark_angle + "deg)";
            mask_div.style.MozTransform = "rotate(-" + defaultSettings.watermark_angle + "deg)";
            mask_div.style.msTransform = "rotate(-" + defaultSettings.watermark_angle + "deg)";
            mask_div.style.OTransform = "rotate(-" + defaultSettings.watermark_angle + "deg)";
            mask_div.style.transform = "rotate(-" + defaultSettings.watermark_angle + "deg)";
            mask_div.style.visibility = "";
            mask_div.style.position = "absolute";
            mask_div.style.left = x + 'px';
            mask_div.style.top = y + 'px';
            mask_div.style.overflow = "hidden";
            mask_div.style.zIndex = "9999";
            mask_div.style.pointerEvents='none';
            //mask_div.style.border="solid #eee 1px";
            mask_div.style.opacity = defaultSettings.watermark_alpha;
            mask_div.style.fontSize = defaultSettings.watermark_fontsize;
            mask_div.style.fontFamily = defaultSettings.watermark_font;
            mask_div.style.color = defaultSettings.watermark_color;
            mask_div.style.textAlign = "center";
            mask_div.style.width = defaultSettings.watermark_width + 'px';
            mask_div.style.height = defaultSettings.watermark_height + 'px';
            mask_div.style.display = "block";
            oTemp.appendChild(mask_div);
          };
        };
        document.body.appendChild(oTemp);
      }
      //onload时触发水印绘制
      window.onload=function(){
          scroll();
          watermark({ watermark_txt: "{{ user }}" });
       };
    </script>
<script>
   function scroll(){
    var xx, yy, XX, YY, swipeX, swipeY;
    var div = document.getElementsByTagName("div");
    document.body.addEventListener('touchstart', function(event) {
        xx = event.targetTouches[0].screenX;
        yy = event.targetTouches[0].screenY;
        swipeX = true;
        swipeY = true;
    })
    document.body.addEventListener('touchmove', function(event) {
        XX = event.targetTouches[0].screenX;
        YY = event.targetTouches[0].screenY;
        if (swipeX && Math.abs(XX - xx) - Math.abs(YY - yy) > 0) //左右滑动
        {
            event.stopPropagation();//组织冒泡
            event.preventDefault();//阻止浏览器默认事件
            swipeY = false;
            //左右滑动
        } else if (swipeY && Math.abs(XX - xx) - Math.abs(YY - yy) < 0) { //上下滑动
            swipeX = false;
            //上下滑动，使用浏览器默认的上下滑动
        }
    })

}
</script>